<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: qwt_analog_clock.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qwt__analog__clock_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_analog_clock.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;qwt_analog_clock.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;qwt_dial_needle.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;qwt_round_scale_draw.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;qwt_text.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;qwt_math.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;qlocale.h&gt;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;qdatetime.h&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="keyword">namespace</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;{</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keyword">class </span>QwtAnalogClockScaleDraw QWT_FINAL : <span class="keyword">public</span> <a class="code" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    {</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;      <span class="keyword">public</span>:</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        QwtAnalogClockScaleDraw()</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        {</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;            <a class="code" href="class_qwt_abstract_scale_draw.html#a074675cd805656f0ae158f84745074af">setSpacing</a>( 8 );</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;            <a class="code" href="class_qwt_abstract_scale_draw.html#af975410588db6103f281e49d0b43c6a6">enableComponent</a>( <a class="code" href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a61a6c4f4dec2b089edfb655e2b21c3a2">QwtAbstractScaleDraw::Backbone</a>, <span class="keyword">false</span> );</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;            <a class="code" href="class_qwt_abstract_scale_draw.html#a7fed388e435aae791d61f48cc9ddf632">setTickLength</a>( <a class="code" href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736ca6af9f3b95636a6fdebb4824c6db0ab9e">QwtScaleDiv::MinorTick</a>, 2 );</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;            <a class="code" href="class_qwt_abstract_scale_draw.html#a7fed388e435aae791d61f48cc9ddf632">setTickLength</a>( <a class="code" href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736ca42fbe3ad54900057e75225ff5e68cc4a">QwtScaleDiv::MediumTick</a>, 4 );</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;            <a class="code" href="class_qwt_abstract_scale_draw.html#a7fed388e435aae791d61f48cc9ddf632">setTickLength</a>( <a class="code" href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736cadda390d4186a0ff20ece95d986c1ae60">QwtScaleDiv::MajorTick</a>, 8 );</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;            <a class="code" href="class_qwt_abstract_scale_draw.html#a6401e26332d65433e0b881400a1ce03b">setPenWidthF</a>( 1.0 );</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        }</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_qwt_text.html">QwtText</a> <a class="code" href="class_qwt_abstract_scale_draw.html#ac1d855f856b746559c41f4f06ec5442d">label</a>( <span class="keywordtype">double</span> value ) <span class="keyword">const</span> QWT_OVERRIDE</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        {</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            <span class="keywordflow">if</span> ( qFuzzyCompare( value + 1.0, 1.0 ) )</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;                value = 60.0 * 60.0 * 12.0;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;            <span class="keywordflow">return</span> QLocale().toString( qRound( value / ( 60.0 * 60.0 ) ) );</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        }</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    };</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;}</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="class_qwt_analog_clock.html#af52a1110f1db89c162f49a23772745b9">   51</a></span>&#160;<a class="code" href="class_qwt_analog_clock.html#af52a1110f1db89c162f49a23772745b9">QwtAnalogClock::QwtAnalogClock</a>( QWidget* parent )</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    : <a class="code" href="class_qwt_dial.html">QwtDial</a>( parent )</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <a class="code" href="class_qwt_abstract_slider.html#ada27ca51ab146554b981fafed38e41e0">setWrapping</a>( <span class="keyword">true</span> );</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <a class="code" href="class_qwt_abstract_slider.html#a9cc63283a2d4f0bcbb67fd331629a318">setReadOnly</a>( <span class="keyword">true</span> );</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <a class="code" href="class_qwt_dial.html#a3f64c6fbac747f735e57c2073e93bc50">setOrigin</a>( 270.0 );</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <a class="code" href="class_qwt_dial.html#a2ed8a0642e1c612013ba812c7e037404">setScaleDraw</a>( <span class="keyword">new</span> QwtAnalogClockScaleDraw() );</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <a class="code" href="class_qwt_abstract_slider.html#a60eea9d9996c99abcb7d50f5ed2634f8">setTotalSteps</a>( 60 );</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> secondsPerHour = 60.0 * 60.0;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <a class="code" href="class_q_list.html">QList&lt; double &gt;</a> majorTicks;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <a class="code" href="class_q_list.html">QList&lt; double &gt;</a> minorTicks;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; 12; i++ )</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    {</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        majorTicks += i * secondsPerHour;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> j = 1; j &lt; 5; j++ )</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            minorTicks += i * secondsPerHour + j * secondsPerHour / 5.0;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    }</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="class_qwt_scale_div.html">QwtScaleDiv</a> <a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">scaleDiv</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">scaleDiv</a>.<a class="code" href="class_qwt_scale_div.html#aa5c61a5fef5f83f2735e4e1b8e545f0b">setInterval</a>( 0.0, 12.0 * secondsPerHour );</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">scaleDiv</a>.<a class="code" href="class_qwt_scale_div.html#af67401fd5d16138eddede3381c559964">setTicks</a>( <a class="code" href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736cadda390d4186a0ff20ece95d986c1ae60">QwtScaleDiv::MajorTick</a>, majorTicks );</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">scaleDiv</a>.<a class="code" href="class_qwt_scale_div.html#af67401fd5d16138eddede3381c559964">setTicks</a>( <a class="code" href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736ca6af9f3b95636a6fdebb4824c6db0ab9e">QwtScaleDiv::MinorTick</a>, minorTicks );</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">setScale</a>( <a class="code" href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">scaleDiv</a> );</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    QColor knobColor = palette().color( QPalette::Active, QPalette::Text );</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    knobColor = knobColor.darker( 120 );</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    QColor handColor;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keywordtype">int</span> width;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea004c9f49b4271e02f350bccd21235ecd">NHands</a>; i++ )</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    {</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <span class="keywordflow">if</span> ( i == <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea2d9426a775588d3afb667ca8e9393c8d">SecondHand</a> )</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            width = 2;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;            handColor = knobColor.darker( 120 );</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        }</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        {</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;            width = 8;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            handColor = knobColor;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        }</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <a class="code" href="class_qwt_dial_simple_needle.html">QwtDialSimpleNeedle</a>* <a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a> = <span class="keyword">new</span> <a class="code" href="class_qwt_dial_simple_needle.html">QwtDialSimpleNeedle</a>(</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;            <a class="code" href="class_qwt_dial_simple_needle.html#ad28821489e04f1fd942e5bebc8a60584a27ace220f0a5c6abd061c85bbdc9a663">QwtDialSimpleNeedle::Arrow</a>, <span class="keyword">true</span>, handColor, knobColor );</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a>-&gt;setWidth( width );</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        m_hand[i] = NULL;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <a class="code" href="class_qwt_analog_clock.html#a643101aafbe7a6fc91cb550203a7d3ee">setHand</a>( <span class="keyword">static_cast&lt;</span> <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfe">Hand</a> <span class="keyword">&gt;</span>( i ), <a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a> );</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    }</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;}</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="class_qwt_analog_clock.html#a3abdcecf88e3d3510d94e96e7e9e74ee">  110</a></span>&#160;<a class="code" href="class_qwt_analog_clock.html#a3abdcecf88e3d3510d94e96e7e9e74ee">QwtAnalogClock::~QwtAnalogClock</a>()</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;{</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea004c9f49b4271e02f350bccd21235ecd">NHands</a>; i++ )</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <span class="keyword">delete</span> m_hand[i];</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;}</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="keywordtype">void</span> QwtAnalogClock::setNeedle( <a class="code" href="class_qwt_dial_needle.html">QwtDialNeedle</a>* )</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;{</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="comment">// no op</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;}</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="class_qwt_analog_clock.html#a643101aafbe7a6fc91cb550203a7d3ee">  132</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_analog_clock.html#a643101aafbe7a6fc91cb550203a7d3ee">QwtAnalogClock::setHand</a>( <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfe">Hand</a> hand, <a class="code" href="class_qwt_dial_needle.html">QwtDialNeedle</a>* needle )</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;{</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a> &gt;= 0 &amp;&amp; <a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a> &lt; <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea004c9f49b4271e02f350bccd21235ecd">NHands</a> )</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    {</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        <span class="keyword">delete</span> m_hand[<a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a>];</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        m_hand[<a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a>] = <a class="code" href="class_qwt_dial.html#a6926445d799b363de728615854623d9e">needle</a>;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    }</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;}</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="class_qwt_analog_clock.html#abb93bf8255bc00ef160165385bb6adce">  146</a></span>&#160;<a class="code" href="class_qwt_dial_needle.html">QwtDialNeedle</a>* <a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">QwtAnalogClock::hand</a>( <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfe">Hand</a> hd )</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;{</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="keywordflow">if</span> ( hd &lt; 0 || hd &gt;= <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea004c9f49b4271e02f350bccd21235ecd">NHands</a> )</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="keywordflow">return</span> m_hand[hd];</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;}</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">  159</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_dial_needle.html">QwtDialNeedle</a>* <a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">QwtAnalogClock::hand</a>( <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfe">Hand</a> hd )<span class="keyword"> const</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span> <a class="code" href="class_qwt_analog_clock.html">QwtAnalogClock</a>* <span class="keyword">&gt;</span>( this )-&gt;<a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a>( hd );</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;}</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160; </div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="class_qwt_analog_clock.html#a1972a54ce59155ec7435103f11a775a7">  167</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_analog_clock.html#a1972a54ce59155ec7435103f11a775a7">QwtAnalogClock::setCurrentTime</a>()</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;{</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <a class="code" href="class_qwt_analog_clock.html#aa99a628b290789583052bcec9163d95c">setTime</a>( QTime::currentTime() );</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;}</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="class_qwt_analog_clock.html#aa99a628b290789583052bcec9163d95c">  176</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_analog_clock.html#aa99a628b290789583052bcec9163d95c">QwtAnalogClock::setTime</a>( <span class="keyword">const</span> QTime&amp; time )</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;{</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="keywordflow">if</span> ( time.isValid() )</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    {</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        <a class="code" href="class_qwt_abstract_slider.html#a6c2021a39850832659b7ebd9ffd09e0e">setValue</a>( ( time.hour() % 12 ) * 60.0 * 60.0</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;            + time.minute() * 60.0 + time.second() );</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    }</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <a class="code" href="class_qwt_abstract_slider.html#a6b527ff0d2f96b85465fd73250d2e03f">setValid</a>( <span class="keyword">false</span> );</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;}</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160; </div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="class_qwt_analog_clock.html#af3ec354864af5b4cd1295a4746960142">  202</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_analog_clock.html#af3ec354864af5b4cd1295a4746960142">QwtAnalogClock::drawNeedle</a>( QPainter* painter, <span class="keyword">const</span> QPointF&amp; center,</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keywordtype">double</span> radius, <span class="keywordtype">double</span> direction, QPalette::ColorGroup colorGroup )<span class="keyword"> const</span></div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    Q_UNUSED( direction );</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160; </div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_slider.html#a9fb9fae0f664460bb487a12541b38d56">isValid</a>() )</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    {</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> hours = <a class="code" href="class_qwt_abstract_slider.html#ad9b7a559149f597a060a9b48aed67715">value</a>() / ( 60.0 * 60.0 );</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> minutes =</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;            ( <a class="code" href="class_qwt_abstract_slider.html#ad9b7a559149f597a060a9b48aed67715">value</a>() - std::floor(hours) * 60.0 * 60.0 ) / 60.0;</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> seconds = <a class="code" href="class_qwt_abstract_slider.html#ad9b7a559149f597a060a9b48aed67715">value</a>() - std::floor(hours) * 60.0 * 60.0</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;            - std::floor(minutes) * 60.0;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160; </div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <span class="keywordtype">double</span> angle[<a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea004c9f49b4271e02f350bccd21235ecd">NHands</a>];</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        angle[<a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea1e8f73f647c5a95ca062a8d63376982a">HourHand</a>] = 360.0 * hours / 12.0;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        angle[<a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea024c7bee0110b50aad1bfffe6f468744">MinuteHand</a>] = 360.0 * minutes / 60.0;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        angle[<a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea2d9426a775588d3afb667ca8e9393c8d">SecondHand</a>] = 360.0 * seconds / 60.0;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160; </div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> <a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a> = 0; <a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a> &lt; <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea004c9f49b4271e02f350bccd21235ecd">NHands</a>; <a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a>++ )</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        {</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> d = 360.0 - angle[<a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a>] - <a class="code" href="class_qwt_dial.html#a49356bf9512363f3233e9bf4018b8f30">origin</a>();</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;            <a class="code" href="class_qwt_analog_clock.html#a989638ce2b03e02fc0c549c16733f5ad">drawHand</a>( painter, <span class="keyword">static_cast&lt;</span> <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfe">Hand</a> <span class="keyword">&gt;</span>( <a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a> ),</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;                center, radius, d, colorGroup );</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        }</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    }</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;}</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160; </div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="class_qwt_analog_clock.html#a989638ce2b03e02fc0c549c16733f5ad">  239</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_analog_clock.html#a989638ce2b03e02fc0c549c16733f5ad">QwtAnalogClock::drawHand</a>( QPainter* painter, <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfe">Hand</a> hd,</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="keyword">const</span> QPointF&amp; center, <span class="keywordtype">double</span> radius, <span class="keywordtype">double</span> direction,</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    QPalette::ColorGroup cg )<span class="keyword"> const</span></div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_dial_needle.html">QwtDialNeedle</a>* <a class="code" href="class_qwt_dial.html#a6926445d799b363de728615854623d9e">needle</a> = <a class="code" href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">hand</a>( hd );</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_dial.html#a6926445d799b363de728615854623d9e">needle</a> )</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    {</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        <span class="keywordflow">if</span> ( hd == <a class="code" href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea1e8f73f647c5a95ca062a8d63376982a">HourHand</a> )</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;            radius = qRound( 0.8 * radius );</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160; </div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <a class="code" href="class_qwt_dial.html#a6926445d799b363de728615854623d9e">needle</a>-&gt;<a class="code" href="class_qwt_dial_needle.html#a7a078ac5316c918e6a7e97316d48383d">draw</a>( painter, center, radius, direction, cg );</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    }</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;}</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="preprocessor">#if QWT_MOC_INCLUDE</span></div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;<span class="preprocessor">#include &quot;moc_qwt_analog_clock.cpp&quot;</span></div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclass_q_list_html"><div class="ttname"><a href="class_q_list.html">QList&lt; double &gt;</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a074675cd805656f0ae158f84745074af"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a074675cd805656f0ae158f84745074af">QwtAbstractScaleDraw::setSpacing</a></div><div class="ttdeci">void setSpacing(double)</div><div class="ttdoc">Set the spacing between tick and labels.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00254">qwt_abstract_scale_draw.cpp:254</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a26215d06a4d48adf401d0aa05d4193c5a61a6c4f4dec2b089edfb655e2b21c3a2"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a26215d06a4d48adf401d0aa05d4193c5a61a6c4f4dec2b089edfb655e2b21c3a2">QwtAbstractScaleDraw::Backbone</a></div><div class="ttdeci">@ Backbone</div><div class="ttdoc">Backbone = the line where the ticks are located.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8h_source.html#l00042">qwt_abstract_scale_draw.h:42</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a6401e26332d65433e0b881400a1ce03b"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a6401e26332d65433e0b881400a1ce03b">QwtAbstractScaleDraw::setPenWidthF</a></div><div class="ttdeci">void setPenWidthF(qreal width)</div><div class="ttdoc">Specify the width of the scale pen.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00144">qwt_abstract_scale_draw.cpp:144</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_a7fed388e435aae791d61f48cc9ddf632"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#a7fed388e435aae791d61f48cc9ddf632">QwtAbstractScaleDraw::setTickLength</a></div><div class="ttdeci">void setTickLength(QwtScaleDiv::TickType, double length)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00315">qwt_abstract_scale_draw.cpp:315</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_ac1d855f856b746559c41f4f06ec5442d"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#ac1d855f856b746559c41f4f06ec5442d">QwtAbstractScaleDraw::label</a></div><div class="ttdeci">virtual QwtText label(double) const</div><div class="ttdoc">Convert a value into its representing label.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00375">qwt_abstract_scale_draw.cpp:375</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_af975410588db6103f281e49d0b43c6a6"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#af975410588db6103f281e49d0b43c6a6">QwtAbstractScaleDraw::enableComponent</a></div><div class="ttdeci">void enableComponent(ScaleComponent, bool enable=true)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00079">qwt_abstract_scale_draw.cpp:79</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a68d4d5a6f44ae4574d5ad8200aaa017f"><div class="ttname"><a href="class_qwt_abstract_scale.html#a68d4d5a6f44ae4574d5ad8200aaa017f">QwtAbstractScale::scaleDiv</a></div><div class="ttdeci">const QwtScaleDiv &amp; scaleDiv() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00349">qwt_abstract_scale.cpp:349</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_ae9640e814b5029d7dd79cb3ba752102b"><div class="ttname"><a href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">QwtAbstractScale::setScale</a></div><div class="ttdeci">void setScale(double lowerBound, double upperBound)</div><div class="ttdoc">Specify a scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00130">qwt_abstract_scale.cpp:130</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a60eea9d9996c99abcb7d50f5ed2634f8"><div class="ttname"><a href="class_qwt_abstract_slider.html#a60eea9d9996c99abcb7d50f5ed2634f8">QwtAbstractSlider::setTotalSteps</a></div><div class="ttdeci">void setTotalSteps(uint)</div><div class="ttdoc">Set the number of steps.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00474">qwt_abstract_slider.cpp:474</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a6b527ff0d2f96b85465fd73250d2e03f"><div class="ttname"><a href="class_qwt_abstract_slider.html#a6b527ff0d2f96b85465fd73250d2e03f">QwtAbstractSlider::setValid</a></div><div class="ttdeci">void setValid(bool)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00113">qwt_abstract_slider.cpp:113</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a6c2021a39850832659b7ebd9ffd09e0e"><div class="ttname"><a href="class_qwt_abstract_slider.html#a6c2021a39850832659b7ebd9ffd09e0e">QwtAbstractSlider::setValue</a></div><div class="ttdeci">void setValue(double value)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00570">qwt_abstract_slider.cpp:570</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a9cc63283a2d4f0bcbb67fd331629a318"><div class="ttname"><a href="class_qwt_abstract_slider.html#a9cc63283a2d4f0bcbb67fd331629a318">QwtAbstractSlider::setReadOnly</a></div><div class="ttdeci">void setReadOnly(bool)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00141">qwt_abstract_slider.cpp:141</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a9fb9fae0f664460bb487a12541b38d56"><div class="ttname"><a href="class_qwt_abstract_slider.html#a9fb9fae0f664460bb487a12541b38d56">QwtAbstractSlider::isValid</a></div><div class="ttdeci">bool isValid() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00125">qwt_abstract_slider.cpp:125</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_ad9b7a559149f597a060a9b48aed67715"><div class="ttname"><a href="class_qwt_abstract_slider.html#ad9b7a559149f597a060a9b48aed67715">QwtAbstractSlider::value</a></div><div class="ttdeci">double value() const</div><div class="ttdoc">Returns the current value.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00587">qwt_abstract_slider.cpp:587</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_ada27ca51ab146554b981fafed38e41e0"><div class="ttname"><a href="class_qwt_abstract_slider.html#ada27ca51ab146554b981fafed38e41e0">QwtAbstractSlider::setWrapping</a></div><div class="ttdeci">void setWrapping(bool)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00599">qwt_abstract_slider.cpp:599</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html"><div class="ttname"><a href="class_qwt_analog_clock.html">QwtAnalogClock</a></div><div class="ttdoc">An analog clock.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8h_source.html#l00043">qwt_analog_clock.h:44</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_a1972a54ce59155ec7435103f11a775a7"><div class="ttname"><a href="class_qwt_analog_clock.html#a1972a54ce59155ec7435103f11a775a7">QwtAnalogClock::setCurrentTime</a></div><div class="ttdeci">void setCurrentTime()</div><div class="ttdoc">Set the current time.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8cpp_source.html#l00167">qwt_analog_clock.cpp:167</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_a3abdcecf88e3d3510d94e96e7e9e74ee"><div class="ttname"><a href="class_qwt_analog_clock.html#a3abdcecf88e3d3510d94e96e7e9e74ee">QwtAnalogClock::~QwtAnalogClock</a></div><div class="ttdeci">virtual ~QwtAnalogClock()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8cpp_source.html#l00110">qwt_analog_clock.cpp:110</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_a4231bc54b5bd8a7530f03515aeec7689"><div class="ttname"><a href="class_qwt_analog_clock.html#a4231bc54b5bd8a7530f03515aeec7689">QwtAnalogClock::hand</a></div><div class="ttdeci">const QwtDialNeedle * hand(Hand) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8cpp_source.html#l00159">qwt_analog_clock.cpp:159</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_a643101aafbe7a6fc91cb550203a7d3ee"><div class="ttname"><a href="class_qwt_analog_clock.html#a643101aafbe7a6fc91cb550203a7d3ee">QwtAnalogClock::setHand</a></div><div class="ttdeci">void setHand(Hand, QwtDialNeedle *)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8cpp_source.html#l00132">qwt_analog_clock.cpp:132</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_a989638ce2b03e02fc0c549c16733f5ad"><div class="ttname"><a href="class_qwt_analog_clock.html#a989638ce2b03e02fc0c549c16733f5ad">QwtAnalogClock::drawHand</a></div><div class="ttdeci">virtual void drawHand(QPainter *, Hand, const QPointF &amp;, double radius, double direction, QPalette::ColorGroup) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8cpp_source.html#l00239">qwt_analog_clock.cpp:239</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_aa99a628b290789583052bcec9163d95c"><div class="ttname"><a href="class_qwt_analog_clock.html#aa99a628b290789583052bcec9163d95c">QwtAnalogClock::setTime</a></div><div class="ttdeci">void setTime(const QTime &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8cpp_source.html#l00176">qwt_analog_clock.cpp:176</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_acd8f7e963ae073120684de46821f2cfe"><div class="ttname"><a href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfe">QwtAnalogClock::Hand</a></div><div class="ttdeci">Hand</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8h_source.html#l00052">qwt_analog_clock.h:53</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_acd8f7e963ae073120684de46821f2cfea004c9f49b4271e02f350bccd21235ecd"><div class="ttname"><a href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea004c9f49b4271e02f350bccd21235ecd">QwtAnalogClock::NHands</a></div><div class="ttdeci">@ NHands</div><div class="ttdoc">Number of needles.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8h_source.html#l00065">qwt_analog_clock.h:64</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_acd8f7e963ae073120684de46821f2cfea024c7bee0110b50aad1bfffe6f468744"><div class="ttname"><a href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea024c7bee0110b50aad1bfffe6f468744">QwtAnalogClock::MinuteHand</a></div><div class="ttdeci">@ MinuteHand</div><div class="ttdoc">Needle displaying the minutes.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8h_source.html#l00058">qwt_analog_clock.h:58</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_acd8f7e963ae073120684de46821f2cfea1e8f73f647c5a95ca062a8d63376982a"><div class="ttname"><a href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea1e8f73f647c5a95ca062a8d63376982a">QwtAnalogClock::HourHand</a></div><div class="ttdeci">@ HourHand</div><div class="ttdoc">Needle displaying the hours.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8h_source.html#l00061">qwt_analog_clock.h:61</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_acd8f7e963ae073120684de46821f2cfea2d9426a775588d3afb667ca8e9393c8d"><div class="ttname"><a href="class_qwt_analog_clock.html#acd8f7e963ae073120684de46821f2cfea2d9426a775588d3afb667ca8e9393c8d">QwtAnalogClock::SecondHand</a></div><div class="ttdeci">@ SecondHand</div><div class="ttdoc">Needle displaying the seconds.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8h_source.html#l00055">qwt_analog_clock.h:55</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_af3ec354864af5b4cd1295a4746960142"><div class="ttname"><a href="class_qwt_analog_clock.html#af3ec354864af5b4cd1295a4746960142">QwtAnalogClock::drawNeedle</a></div><div class="ttdeci">virtual void drawNeedle(QPainter *, const QPointF &amp;, double radius, double direction, QPalette::ColorGroup) const override</div><div class="ttdoc">Draw the needle.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8cpp_source.html#l00202">qwt_analog_clock.cpp:202</a></div></div>
<div class="ttc" id="aclass_qwt_analog_clock_html_af52a1110f1db89c162f49a23772745b9"><div class="ttname"><a href="class_qwt_analog_clock.html#af52a1110f1db89c162f49a23772745b9">QwtAnalogClock::QwtAnalogClock</a></div><div class="ttdeci">QwtAnalogClock(QWidget *parent=NULL)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__analog__clock_8cpp_source.html#l00051">qwt_analog_clock.cpp:51</a></div></div>
<div class="ttc" id="aclass_qwt_dial_html"><div class="ttname"><a href="class_qwt_dial.html">QwtDial</a></div><div class="ttdoc">QwtDial class provides a rounded range control.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial_8h_source.html#l00050">qwt_dial.h:51</a></div></div>
<div class="ttc" id="aclass_qwt_dial_html_a2ed8a0642e1c612013ba812c7e037404"><div class="ttname"><a href="class_qwt_dial.html#a2ed8a0642e1c612013ba812c7e037404">QwtDial::setScaleDraw</a></div><div class="ttdeci">void setScaleDraw(QwtRoundScaleDraw *)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial_8cpp_source.html#l00574">qwt_dial.cpp:574</a></div></div>
<div class="ttc" id="aclass_qwt_dial_html_a3f64c6fbac747f735e57c2073e93bc50"><div class="ttname"><a href="class_qwt_dial.html#a3f64c6fbac747f735e57c2073e93bc50">QwtDial::setOrigin</a></div><div class="ttdeci">virtual void setOrigin(double)</div><div class="ttdoc">Change the origin.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial_8cpp_source.html#l00660">qwt_dial.cpp:660</a></div></div>
<div class="ttc" id="aclass_qwt_dial_html_a49356bf9512363f3233e9bf4018b8f30"><div class="ttname"><a href="class_qwt_dial.html#a49356bf9512363f3233e9bf4018b8f30">QwtDial::origin</a></div><div class="ttdeci">double origin() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial_8cpp_source.html#l00674">qwt_dial.cpp:674</a></div></div>
<div class="ttc" id="aclass_qwt_dial_html_a6926445d799b363de728615854623d9e"><div class="ttname"><a href="class_qwt_dial.html#a6926445d799b363de728615854623d9e">QwtDial::needle</a></div><div class="ttdeci">const QwtDialNeedle * needle() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial_8cpp_source.html#l00538">qwt_dial.cpp:538</a></div></div>
<div class="ttc" id="aclass_qwt_dial_needle_html"><div class="ttname"><a href="class_qwt_dial_needle.html">QwtDialNeedle</a></div><div class="ttdoc">Base class for needles that can be used in a QwtDial.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial__needle_8h_source.html#l00027">qwt_dial_needle.h:28</a></div></div>
<div class="ttc" id="aclass_qwt_dial_needle_html_a7a078ac5316c918e6a7e97316d48383d"><div class="ttname"><a href="class_qwt_dial_needle.html#a7a078ac5316c918e6a7e97316d48383d">QwtDialNeedle::draw</a></div><div class="ttdeci">virtual void draw(QPainter *, const QPointF &amp;center, double length, double direction, QPalette::ColorGroup=QPalette::Active) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial__needle_8cpp_source.html#l00219">qwt_dial_needle.cpp:219</a></div></div>
<div class="ttc" id="aclass_qwt_dial_simple_needle_html"><div class="ttname"><a href="class_qwt_dial_simple_needle.html">QwtDialSimpleNeedle</a></div><div class="ttdoc">A needle for dial widgets.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial__needle_8h_source.html#l00081">qwt_dial_needle.h:82</a></div></div>
<div class="ttc" id="aclass_qwt_dial_simple_needle_html_ad28821489e04f1fd942e5bebc8a60584a27ace220f0a5c6abd061c85bbdc9a663"><div class="ttname"><a href="class_qwt_dial_simple_needle.html#ad28821489e04f1fd942e5bebc8a60584a27ace220f0a5c6abd061c85bbdc9a663">QwtDialSimpleNeedle::Arrow</a></div><div class="ttdeci">@ Arrow</div><div class="ttdoc">Arrow.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__dial__needle_8h_source.html#l00088">qwt_dial_needle.h:88</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html"><div class="ttname"><a href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a></div><div class="ttdoc">A class for drawing round scales.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8h_source.html#l00031">qwt_round_scale_draw.h:32</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html"><div class="ttname"><a href="class_qwt_scale_div.html">QwtScaleDiv</a></div><div class="ttdoc">A class representing a scale division.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8h_source.html#l00033">qwt_scale_div.h:34</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_aa5c61a5fef5f83f2735e4e1b8e545f0b"><div class="ttname"><a href="class_qwt_scale_div.html#aa5c61a5fef5f83f2735e4e1b8e545f0b">QwtScaleDiv::setInterval</a></div><div class="ttdeci">void setInterval(double lowerBound, double upperBound)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8cpp_source.html#l00091">qwt_scale_div.cpp:91</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_af21aedaa886dd5e067cf63505838736ca42fbe3ad54900057e75225ff5e68cc4a"><div class="ttname"><a href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736ca42fbe3ad54900057e75225ff5e68cc4a">QwtScaleDiv::MediumTick</a></div><div class="ttdeci">@ MediumTick</div><div class="ttdoc">Medium ticks.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8h_source.html#l00046">qwt_scale_div.h:46</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_af21aedaa886dd5e067cf63505838736ca6af9f3b95636a6fdebb4824c6db0ab9e"><div class="ttname"><a href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736ca6af9f3b95636a6fdebb4824c6db0ab9e">QwtScaleDiv::MinorTick</a></div><div class="ttdeci">@ MinorTick</div><div class="ttdoc">Minor ticks.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8h_source.html#l00043">qwt_scale_div.h:43</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_af21aedaa886dd5e067cf63505838736cadda390d4186a0ff20ece95d986c1ae60"><div class="ttname"><a href="class_qwt_scale_div.html#af21aedaa886dd5e067cf63505838736cadda390d4186a0ff20ece95d986c1ae60">QwtScaleDiv::MajorTick</a></div><div class="ttdeci">@ MajorTick</div><div class="ttdoc">Major ticks.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8h_source.html#l00049">qwt_scale_div.h:49</a></div></div>
<div class="ttc" id="aclass_qwt_scale_div_html_af67401fd5d16138eddede3381c559964"><div class="ttname"><a href="class_qwt_scale_div.html#af67401fd5d16138eddede3381c559964">QwtScaleDiv::setTicks</a></div><div class="ttdeci">void setTicks(int tickType, const QList&lt; double &gt; &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__div_8cpp_source.html#l00297">qwt_scale_div.cpp:297</a></div></div>
<div class="ttc" id="aclass_qwt_text_html"><div class="ttname"><a href="class_qwt_text.html">QwtText</a></div><div class="ttdoc">A class representing a text.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00051">qwt_text.h:52</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_analog_clock.cpp</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
